<?php

abstract class BaseAction {

    abstract public function execute ();

    public function __construct () {
    }

    protected function display ($filename) {
        $viewFilePath = VIEWER . DS . $filename . '.phtml';
        include $viewFilePath;
    }

    protected function getUrl ($uri, $param = '') {
        return $this->getBaseTools()->getUrl($uri, $param, HOME_URL);
    }

    public function getBaseTools () {
        require_once 'modules/ModulesFactory.php';
        return ModulesFactory::getInstance()->createBaseTools();
    }
}
?>